import http from "./fetchHttp";
export function AddRoleInfo(data) {
    if(data[0].roleEnable===true){
        data[0].roleEnable=0
    }
    else{
        data[0].roleEnable=1

    }
    console.log(data,'data');

  return http({
    url: "/roleInfo/AddRoleInfo",
    method: "get",
    data:data[0]
  });
}
